import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

public class Demo11 {
    public static void main(String[] args) throws IOException {
        try(Reader reader = new FileReader("./text")){
            while (true) {
                int c = reader.read();
                if (c == -1) return;
                char ch = (char) c;
                System.out.println(ch);
            }
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
